package com.hoshino.momochi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hoshino.momochi.model.domain.SensitiveWord;

import java.util.List;

public interface SensitiveWordMapper extends BaseMapper<SensitiveWord> {

    /**
     * 获取全部的敏感词
     *
     * @return
     */
    List<String> getAllSensitiveWord();

    /**
     * 添加单个敏感词
     *
     * @param sensitiveWord
     */
    void addSensitiveWord(SensitiveWord sensitiveWord);

    /**
     * 批量添加敏感词
     *
     * @param list
     */
    void addSensitiveWords(List<String> list);

    /**
     * 删除敏感词
     *
     * @param sensitiveWord
     */
    void delSensitiveWord(SensitiveWord sensitiveWord);

    /**
     * 删除 isDelete = 1 的数据
     */
    void delIsDeleteAsTrue();
}
